import Provider from "@/pages/Provider.vue";
import Menu from "@/pages/Menu.vue";
import Client from "@/pages/Client.vue";
import Caigou from "@/pages/Caigou.vue";
import BuyInfo from "@/pages/BuyInfo.vue";
import Login from "@/pages/Login.vue";
import Sale from "@/pages/Sale.vue";
import SaleInfo from "@/pages/SaleInfo.vue";
import Goods from "@/pages/Goods.vue";
import SaleStats from "@/pages/SaleStats.vue";
import MonthlyStats from "@/pages/MonthlyStats.vue";
import User from "@/pages/User.vue";
import Role from "@/pages/Role.vue";
import ModifyPassWord from "@/pages/ModifyPassWord.vue";
import Log from "@/pages/Log.vue";
import Pig from "@/pages/Pig.vue";

const routes = [
    {
        name: "Login",
        path: "/",
        component: Login
    },
    {
        name: "Menu",
        path: "/menu",
        component: Menu,
        children: [
            {
                name: "Provider",
                path: "/provider",
                component: Provider
            },
            {
                name: "Client",
                path: "/client",
                component: Client
            },
            {
                name: "Caigou",
                path: "/caigou",
                component: Caigou
            },
            {
                name: "BuyInfo",
                path: "/buyInfo",
                component: BuyInfo
            },
            {
                name: "Sale",
                path: "/sale",
                component: Sale
            },
            {
                name: "SaleInfo",
                path: "/saleInfo",
                component: SaleInfo
            },
            {
                name: "Goods",
                path: "/goods",
                component: Goods
            },
            {
                name: "SaleStats",
                path: "/saleStats",
                component: SaleStats
            },
            {
                name: "MonthlyStats",
                path: "/month",
                component: MonthlyStats
            },
            {
                name: "User",
                path: "/user",
                component: User
            }
            ,
            {
                name: "Role",
                path: "/role",
                component: Role
            },
            {
                name: "Pwd",
                path: "/pwd",
                component: ModifyPassWord
            },
            {
                name: "Log",
                path: "/log",
                component: Log
            },
            {
                name: "Pig",
                path: "/pig",
                component: Pig
            }
        ]
    }
]
export default routes;